<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>学生信息管理系统</title>
<link rel="stylesheet" href="css/index.css" type="text/css"></link>
 <script>
      function check(){
       var from1= document.getElementById("from1");
      if(from1.sno.value==""){
      alert("请输入用户名：");
      from1.sno.focus();
      return;
      }else if(from1.pwd.value==""){
      alert("请输入密码");
      from1.pwd.focus();
      return;
      }else{
      from1.submit();
      }
  } 
 </script>
</head>
<body>
<div id="Layer1">
<div id="Layer2"><img src="mages/top.jpg" width="800" height="150" /></div>
<div id="Layer3"><img src="mages/login.jpg" width="800" height="370" /></div>
<div id="Layer4">
<form action="U_Login.action" method="post" >
<div  align="left">
 用户名:(学号)<input type="text" name="sno"/><br /><br />
密码:<input type="password" name="pwd" /><br /><br />
   <label>身份
         <select name="select1">
           <option value="admin">管理员</option>
		   <option value="student" selected="selected">普通成员</option>
         </select>
        </label><br /><br />
     <input name="提交"  type="submit" onclick="check()" value="登录"  />
     <input name="重置"  type="reset" value="重置"  />
  </div>
  </form>
</div>
<div id="Layer5">${tishi}</div>
</div>
</body>
</html>

